From 31c7491e52ce6431cc5ef8c92739648dd8344ce5 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Mon, 9 Apr 2001 12:36:11 +0000 Subject: [PATCH] (try_window_id): When scrolling on a terminal, take the change of window_internal_height into account. --- src/xdisp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/xdisp.c b/src/xdisp.c index 2a17d947216..61fb6334678 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -11428,7 +11428,9 @@ try_window_id (w) int first_unchanged_at_end_vpos = MATRIX_ROW_VPOS (first_unchanged_at_end_row, w->current_matrix); int from = XFASTINT (w->top) + first_unchanged_at_end_vpos; - int end = XFASTINT (w->top) + window_internal_height (w); + int end = (XFASTINT (w->top) + + (WINDOW_WANTS_HEADER_LINE_P (w) ? 1 : 0) + + window_internal_height (w)); /* Perform the operation on the screen. */ if (dvpos > 0) -- 2.30.2